package com.example.bookstore.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("orders_item")
public class OrdersItem {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private int bookId;
    private int ordersId;
    private int quantity;

    @TableField(exist = false)
    private String bookImg;
    @TableField(exist = false)
    private Double bookPrice;//价格
    @TableField(exist = false)
    private String bookName;//书名

}
